/*
 * author      : 吴中勤 
 * date        : 2018/11/15
 * description : TODO
 */

package org.wzq.learn;

import java.util.ArrayList;
import java.util.List;

public class Shop {

    private String shopId;

    private String name;

    private String sellerId;

    public static List<Shop> mockShops() {
        List<Shop> list = new ArrayList<>(4);
        list.add(new Shop("id_001", "shop_001", "seller_001"));
        list.add(new Shop("id_002", "shop_002", "seller_001"));
        list.add(new Shop("id_003", "shop_003", "seller_002"));
        return list;
    }

    public Shop(String shopId, String name, String sellerId) {
        this.shopId = shopId;
        this.name = name;
        this.sellerId = sellerId;
    }

    @Override
    public String toString() {
        return "Shop{" +
                "shopId='" + shopId + '\'' +
                ", name='" + name + '\'' +
                ", sellerId='" + sellerId + '\'' +
                '}';
    }

    // === setter/getter ===

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }
}
